Skip to content

Replace sleeps in FileUtilsTest with explicit modification times - #377

Merged
slachiewicz merged 1 commit into
masterfrom
agent/utils-no-sleep
Nov 22, 2026
Merged

slachiewicz merged 1 commit into
masterfrom
agent/utils-no-sleep

Conversation

@slachiewicz

Copy link
Copy Markdown
Member

The two copyIfModified tests slept a second to get distinct timestamps; they now set lastModified explicitly, as copyIfModifiedWhenSourceHasZeroDate does, and the reallySleep helper is gone. The tests no longer depend on the file system's timestamp granularity.

@slachiewicz slachiewicz added the maintenance Cleanup, refactoring or other internal change label Nov 22, 2026
@slachiewicz
slachiewicz marked this pull request as ready for review November 22, 2026 16:58
@slachiewicz
slachiewicz merged commit 40bfe59 into master Nov 22, 2026
13 checks passed
@slachiewicz
slachiewicz deleted the agent/utils-no-sleep branch November 22, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Cleanup, refactoring or other internal change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant